#include "serial.h"
#include "ui_serial.h"

Serial::Serial(QWidget *parent)
    : QDialog(parent)
    , ui(new Ui::Serial)
{
    ui->setupUi(this);
}

Serial::~Serial()
{
    delete ui;
}
void Serial::setDispData(QString _dat)
{
    ui->originalTextBrowser->append(_dat);
}
void Serial::setDispHexData(QString _dat)
{
    ui->protocolTextBrowser->append(_dat);
}
void Serial::on_clearPushButton_clicked()
{
    ui->originalTextBrowser->clear();
    ui->protocolTextBrowser->clear();
}

